using System;

namespace Sedna.Core.Controller.Configurations
{
	/// <summary>
	/// Default implementation for IRadioButtonConfiguration.
	/// </summary>
	public class RadioButtonConfiguration: ClientScriptingConfiguration, IRadioButtonConfiguration
	{
		private string groupName;
		private bool isChecked;
		private string checkedBindPath;
		private string checkedUnbindPath;
	    private bool autoPostBack = false;

		public string GroupName
		{
			get { return groupName; }
			set { groupName = value; }
		}

		public bool Checked
		{
			get { return isChecked; }
			set { isChecked = value; }
		}

		public string CheckedBindPath
		{
			get { return checkedBindPath; }
			set { checkedBindPath = value; }
		}

		public string CheckedUnbindPath
		{
			get { return checkedUnbindPath; }
			set { checkedUnbindPath = value; }
		}

		public string CheckedPath
		{
			set
			{
				checkedUnbindPath=value;
				checkedBindPath=value;
			}
		}

	    public bool AutoPostBack
	    {
	        get { return autoPostBack; }
	        set { autoPostBack = value; }
	    }
	}
}
